package com.victor.pomelo.model;

import java.util.List;

public class Menu {
	private Long menuid; //菜单ID

	private Long parentid; //父菜单ID

	private Long resourceid; //关联资源ID

	private String name; //菜单名称，实际应该叫Title或是Caption

	private String img; //菜单使用图像的uri

	private String url; // 菜单入口地址

	private String target; //连接指向目标框架

	private String detail; //菜单的详细描述

	private String state; //菜单使用状态

	private Integer orderby; //菜单排序

	private List<Menu> subMenus; //子菜单列表 

	private boolean visible = false; // 是否显示,默认不显示

	public Long getMenuid() {
		return menuid;
	}

	public void setMenuid(Long menuid) {
		this.menuid = menuid;
	}

	public Long getParentid() {
		return parentid;
	}

	public void setParentid(Long parentid) {
		this.parentid = parentid;
	}

	public Long getResourceid() {
		return resourceid;
	}

	public void setResourceid(Long resourceid) {
		this.resourceid = resourceid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img == null ? null : img.trim();
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url == null ? null : url.trim();
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target == null ? null : target.trim();
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail == null ? null : detail.trim();
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state == null ? null : state.trim();
	}

	public Integer getOrderby() {
		return orderby;
	}

	public void setOrderby(Integer orderby) {
		this.orderby = orderby;
	}

	public List<Menu> getSubMenus() {
		return subMenus;
	}

	public void setSubMenus(List<Menu> subMenus) {
		this.subMenus = subMenus;
	}

	public boolean isVisible() {
		return visible;
	}

	public void setVisible(boolean visible) {
		this.visible = visible;
	}

	@Override
	public String toString() {
		return "Menu [menuid=" + menuid + ", parentid=" + parentid + ", resourceid=" + resourceid + ", name=" + name + ", img=" + img + ", url=" + url
				+ ", target=" + target + ", detail=" + detail + ", state=" + state + ", orderby=" + orderby + ", subMenus=" + subMenus + ", visible=" + visible
				+ "]";
	}
}